Tags: get lint sort Pad version identity Dom domain var MySQL version is greater than 5.0, there is a default database Information_schema, which holds all the database information (such as table name, column name, corresponding permissions, etc. ), through this database, we can cross-Library query, explode the list. To retrieve information from these views, specify the fully qualified information_schema view_name name.
Column Name
Use the explode () function in PHP to cut strings into arrays and explode arrays.
The function of explode () is used to split another string into arrays.
For example:
String
$ Pizza = "1st 2nd 3rd 4th 5th 6th ";
After separation by space: $ pieces = explode ("", $ pizza );
$ Pieces is the split array. Let's print
In PHP, the explode () function is used to cut the string into an array. The explode Array
The function of explode () is used to split another string into arrays.
For example:
String
$ Pizza = "1st 2nd 3rd 4th 5th 6th ";
After separation by space:$ Pieces = explode (", $ pizza );
$ Pieces is the split array. Let'
The segmentation of a split string string is achieved through the explode () function. The explode () function splits a string by the specified rules and returns an array of values. Its syntax is as follows: The parameter list for the explode (separator,string,limit) function is as follows: Parameter description separator Necessary parameters, specify the split i
Definition and usageThe explode () function splits the string into arrays.GrammarExplode (separator,string,limit) parameter descriptionSeparator required. Specifies where to split the string.string is required. The string to split.Limit is optional. Specifies the maximum number of array elements that are returned.DescriptionThis function returns an array of strings, each of which is a substring separated by separator as a boundary point.The separator
Explode
(PHP 4, PHP 5, PHP 7)
Explode-split a string by string
explode-using one string to split another string
Descriptionarrayexplode( $delimiter, $string[, $limitPHP_INT_MAX] )//Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimit
extension. the following shows the instance code:
The code is as follows:
$ File = "www.jb51.net.gif "; $ ExtArray = explode ('.', $ file );$ Ext = end ($ extArray );Echo $ ext; // The output value is .gif.
Note: The Separator cannot be a null string, and the string to be split is null.
The Definition and Usage functions are not used. it may be because the delimiter you set does not exist.
I hope this a
The explode () function splits the string into arrays.
Syntax
explode (separator,string,limit)
Parameters
Description
Separator
Necessary. Specify where to split the string.
String
Necessary. The string to split.
Limit
Optional. Specify the maximum number of array elements to return.
Description
This function returns an array
Let's talk about the use of explode and implode in php, ballet shoes, and hope to help friends and friends! Speaking of php, the function is very long and important, and it is also a php enthusiast, and friends who prefer php Advanced must control the stuff, learning php friends also know that the array is also necessary to grasp, in that way, advanced php is to learn arrays in php. in arrays, we usually need to use split strings or something, so we n
, it is enough to explode any despise linuxer of those na/np/ie.If I say: Ping the address with the source X (this sentence has an implicit thing, that is, you have to get a loopback, the source you want to bring up, but if you say it out, it appears layman). You must think I am a na/np/ie, because for linuxer, there is no "with the source" such as the saying, nor often use this, usually directly ping, not through the stare ... With the source Ping, t
Speaking of PHP, the function is very long and important, and it is also a PHP enthusiast, and friends who prefer PHP advanced must control the stuff, learning PHP friends also know that the array is also necessary to grasp, in that way, advanced PHP is to learn arrays in PHP. In arrays, we usually need to use split strings or something, so we need to use the explode and implode functions, let's talk about the use of
Speaking of php, the function is very long and important, and it is also a php enthusiast, and friends who prefer php advanced must control the stuff, learning php friends also know that the array is also necessary to grasp, in that way, advanced php is to learn arrays in php. In arrays, we usually need to use split strings or something, so we need to use the explode and implode functions, let's talk about the use of
When it comes to PHP, functions are often the main, but also PHP enthusiasts, and preferences of the Friends of PHP to control the Dongdong, learning PHP Huubang also know that the array is also necessary to grasp, to that way, advanced PHP, is to learn the array in PHP and in the array is usually used to split string ah what, it will be used to explode, and implode function, the next said in PHP explode an
Split string
Dividing a string into an array using the EXPLODE function
Copy Code code as follows:
$source = "HELLO1,HELLO2,HELLO3,HELLO4,HELLO5";//separating strings by commas
$hello = Explode (', ', $source);
for ($index =0; $index {
echo $hello [$index];echo "}
?>
Split function for character segmentation
The delimiter can be a slash, a dot, or a horizontal line
This article mainly introduces the usage of the explode function in php. The example analyzes the application of the explode function to split strings and obtain file extensions, which has some reference value, for more information about how to use the explode function in php, see the example in this article. Share it with you for your reference. The details are
This article mainly introduces the usage of explode function in PHP, the example analyzes the application of explode function segmentation string and obtains the file suffix name, it has certain reference value, the need friend can refer to the following
This paper analyzes the usage of explode function in PHP. Share to everyone for your reference. Specific as f
This article mainly introduces the usage of the explode function in php. The example analyzes the application of the explode function to split strings and obtain file extensions, which has some reference value, for more information about how to use the explode function in php, see the example in this article. Share it with you for your reference. The details are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.